package com.lagou.controle;

import com.lagou.bean.ComsumerComponet;
import com.lagou.utlis.IpUtils;
import org.apache.dubbo.rpc.RpcContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 司晨雨
 * @date 2020/11/1 20:42
 * @description
 */
@RestController
public class HelloControl {

    @Autowired
    private ComsumerComponet service;

    @RequestMapping("/hello")
    @ResponseBody
    public String sayHello(HttpServletRequest request){

        String result = service.sayHello("scy");

        String result1 = service.sayHello1("lagou");
        return "result返回结果："+result + " <br/> result1返回结果："+result1;
    }





}
